//封装category相关的接口函数

import request from '@/utils/request'

export const getBannerListService = (params) => {
    return request({
        url: '/banner/list',
        method: 'GET',
        params
    })
}

export const addBannerService = (data) =>{
    return request({
        url: '/banner/add',
        method: 'POST',
        data
    })
}

export const updateBannerService = (data) =>{
    return request({
        url: '/banner/update',
        method: 'PUT',
        data
    })
}

export const deleteBannerService = (id) =>{
    return request({
        url: '/banner/delete?id='+id,
        method: 'DELETE'
    })
}